import request from '@/utils/request'


export function fetchstoderList(data) {
  return request({
    url: '/order/index',
    method: 'post',
    data
  })
}

export function fetchorder(data) {
  return request({
    url: '/order/store',
    method: 'post',
    data
  })
}

export function oderinfo(data) {
  return request({
    url: '/order/detail',
    method: 'get',
    params: data
  })
}

// export function updates_store_oder(data) {
//   return request({
//     url: '/admin/updates_store_oder',
//     method: 'post',
//     data
//   })
// }

export function deleteOrder(data) {
  return request({
    url: '/order/destory',
    method: 'post',
    data
  })
}




export function delWithdrawal(data) {
  return request({
    url: '/order/delWithdrawal',
    method: 'post',
    data
  })
}
export function saveWithdrawal(data) {
  return request({
    url: '/order/saveWithdrawal',
    method: 'post',
    data
  })
}
export function withdrawalList(data) {
  return request({
    url: '/order/withdrawalList',
    method: 'post',
    data
  })
}

export function getUserCardByInfo(data) {
  return request({
    url: '/order/getUserCardByInfo',
    method: 'post',
    data
  })
}
export function getUserInfoByOrder(data) {
  return request({
    url: '/order/getUserInfoByOrder',
    method: 'post',
    data
  })
}
